<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <div class="col-md-6">
        <form action="{:url('blog/setmeal/detailPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
            <div class="row">
                <div class="col-md-9">
                    <table class="table table-bordered">
                        <tr>
                            <input type="hidden" id="id" name="id" value="{$data.id}">
                            <input type="hidden" id="goods_id" name="goods_id" value="{$data.goods_id}">
                            <th width="100">选择商品<span class="form-required">√</span></th>
                            <td>
                                <input class="form-control" readonly="readonly" type="text" style="width: 250px;" id="proid" name="proid" required value="{$data.goods_name}" />
                                <input type="button" value="选择商品" id="select" >
                            </td>
                        </tr>
                        <tr>
                            <th width="100">套餐主题<span class="form-required">√</span></th>
                            <td>
                                <input class="form-control" type="text" style="width: 400px;" name="set_name" value="{$data.set_name}"/>
                            </td>
                        </tr>
                        <!--   <tr>
                               <th width="100">开始时间<span class="form-required">√</span></th>
                               <td>
                                   <input class="form-control js-bootstrap-datetime" type="text" style="width: 250px;" name="set_start" required placeholder="输入折扣开始时间"/>
                               </td>
                           </tr>
                           <tr>
                               <th width="100">结束时间<span class="form-required">√</span></th>
                               <td>
                                   <input class="form-control js-bootstrap-datetime" type="text" style="width: 250px;" name="set_end" required placeholder="输入折扣结束时间"/>
                               </td>
                           </tr>-->
                        <tr>
                            <th width="100">原价<span class="form-required">√</span></th>
                            <td>
                                <input class="form-control" type="text" style="width: 200px;" name="set_price" value="{$data.set_price}"/>
                            </td>
                        </tr>
                        <tr>
                            <th width="100">会员价<span class="form-required">√</span></th>
                            <td>
                                <input class="form-control" type="text" style="width: 200px;" name="set_prices" value="{$data.set_prices}"/>
                            </td>
                        </tr>
                        <tr>
                            <th width="100">库存<span class="form-required">√</span></th>
                            <td>
                                <input class="form-control" type="text" style="width: 200px;" name="number" value="{$data.number}" />
                            </td>
                        </tr>
                        <tr>
                            <th width="100">状态<span class="form-required">√</span></th>
                            <td>
                                <select class="form-control" id="status" name="status">
                                 <if condition="$data.status eq 1">
                                    <option selected  value="1">开启</option>
                                    <option value="2">关闭</option>
                                 <else/>
                                     <option value="1">开启</option>
                                     <option selected value="2">关闭</option>
                                 </if>
                                </select>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <button type="submit" class="btn btn-primary">提交</button>
        </form>
    </div>
</div>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer/layer.js"></script>
<script type="text/javascript" src="__STATIC__/js/product.js"></script>
</body>
<script>
    $('#select').click(function(){
        layer.open({
            type: 2,
            title: '选择商品',
            shadeClose: true,
            shade: false,
            maxmin: false, //开启最大化最小化按钮
            area: ['100%', '100%'],
            content: "{:url('setmeal/addgoods')}"//视图路径
        })
    })

</script>
</html>